package org.ezplatform.office.forum.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseCorpEntity;

/**
 * @desc 论坛积分实体类
 * @create 2017-11-14 20:08
 **/
@MetaData(value = "论坛积分")
@Entity(name = "ForumIntegral")
@Table(name = "oa_forum_integral", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
public class ForumIntegral extends BaseCorpEntity {

    private static final long serialVersionUID = -1633409975032489554L;
    
    /**
     * 用户姓名
     */
    @MetaData(value = "用户姓名")
    @Column(name = "username")
    private String username;
    
    /**
     * 用户id
     */
    @MetaData(value = "用户id")
    @Column(name = "userid")
    private String userid;
    
    /**
     * 用户账号
     */
    @MetaData(value = "用户账号")
    @Column(name = "useraccount")
    private String useraccount;
    
    /**
     * 发帖积分
     */
    @MetaData(value = "发帖积分")
    @Column(name = "post_score")
    private int postScore;
    
    /**
     * 设置置顶积分
     */
    @MetaData(value = "设置置顶积分")
    @Column(name = "top_score")
    private int topScore;
    
    /**
     * 设置精华积分
     */
    @MetaData(value = "设置精华积分")
    @Column(name = "essence_score")
    private int essenceScore;
    
    /**
     * 设置收藏积分
     */
    @MetaData(value = "设置收藏积分")
    @Column(name = "favorite_score")
    private int favoriteScore;
    
    /**
     * 评论帖子积分
     */
    @MetaData(value = "评论帖子积分")
    @Column(name = "comment_score")
    private int commentScore;
    
    /**
     * 积分扣减备注
     */
    @MetaData(value = "积分扣减备注")
    @Column(name = "mark")
    private String mark;
    
	/**
     * 论坛总积分
     */
    @MetaData(value = "论坛总积分")
    @Column(name = "total_score")
    private int totalScore;
    
    /**
     * 单日总积分
     */
    @MetaData(value = "单日总积分")
    @Column(name = "daychange_score")
    private int daychangeScore;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUseraccount() {
		return useraccount;
	}

	public void setUseraccount(String useraccount) {
		this.useraccount = useraccount;
	}

	public int getPostScore() {
		return postScore;
	}

	public void setPostScore(int postScore) {
		this.postScore = postScore;
	}

	public int getTopScore() {
		return topScore;
	}

	public void setTopScore(int topScore) {
		this.topScore = topScore;
	}

	public int getEssenceScore() {
		return essenceScore;
	}

	public void setEssenceScore(int essenceScore) {
		this.essenceScore = essenceScore;
	}

	public int getFavoriteScore() {
		return favoriteScore;
	}

	public void setFavoriteScore(int favoriteScore) {
		this.favoriteScore = favoriteScore;
	}

	public int getCommentScore() {
		return commentScore;
	}

	public void setCommentScore(int commentScore) {
		this.commentScore = commentScore;
	}

	public int getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(int totalScore) {
		this.totalScore = totalScore;
	}
	
    public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public int getDaychangeScore() {
		return daychangeScore;
	}

	public void setDaychangeScore(int daychangeScore) {
		this.daychangeScore = daychangeScore;
	}
    
}
